// 封装购物车相关的请求接口
import request from '@/utils/request'

// 加入购物车
export const addCartAPI = (data) => {
    return request.post('/member/cart', data)
}

// 删除购物车
export const delCartAPI = (ids) => {
    return request.delete('/member/cart', {data: {ids}})
}

// 获取购物车列表
export const getCartListAPI = () => {
    return request.get('/member/cart')
}

// 合并购物车
export const mergeCartAPI = (data) => {
    return request.post('/member/cart/merge', data)
}

